package D练习;

import java.util.Scanner;

public class Cl两只老虎 {
    public static void main(String[] args) {
        /*动物园有两只老虎，体重分别为通过键盘录入获得
        * 请用程序实现判断两只老虎体重是否相同*/

        //键盘录入两只老虎的体重
        Scanner sc = new Scanner(System.in);
        System.out.printf("请输入第一只老虎的体重");
        int weight1 = sc.nextInt();
        System.out.printf("请输入第二只老虎的体重");
        int weight2 = sc.nextInt();
        //2。比较
        //true false
        //相同 不同
//        System.out.println(weight1 == weight2);
        String result = weight1 == weight2 ? "相同" : "不同";
        System.out.println(result);
    }

    }
